import pymysql

db = pymysql.connect('localhost', 'rootroot', '1234', 'hems')
cursor = db.cursor()
sql = 'select * from arc_building '
print(type(cursor))
try:
    cursor.execute(sql)

    result = cursor.fetchall()
    print(result)
    print(type(result))
except:
    print("Error: unable to fetch data")

